//
//  ASShowAchievementVC.m
//  AttendenceSys
//
//  Created by 窦芳俊 on 16/3/30.
//  Copyright © 2016年 窦芳俊. All rights reserved.
//

#import "ASShowAchievementVC.h"

@interface ASShowAchievementVC ()

@property (nonatomic, strong) AchievementInfo *info;
@property (nonatomic, strong) UITextView         *contentView;

@end


@implementation ASShowAchievementVC


- (instancetype)initWithInfo:(AchievementInfo *)info
{
    self = [super init];
    if (self)
    {
        _info = info;
    }
    
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self initUI];
}

- (void)initUI
{
    _contentView = [[UITextView alloc] initWithFrame:CGRectZero];
    _contentView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
    _contentView.font = [UIFont systemFontOfSize:15.0f];
    [_contentView setBackgroundColor:[UIColor whiteColor]];
    [_contentView setTextColor:RGB(51, 51, 51)];
    [_contentView setScrollEnabled:YES];
    _contentView.showsHorizontalScrollIndicator = YES;
    _contentView.showsVerticalScrollIndicator = YES;
    _contentView.userInteractionEnabled = YES;
    CGSize size = CGSizeMake(self.view.frame.size.width, self.view.frame.size.height);
    [_contentView setContentSize:size];
    _contentView.text = _info.achiContent;
    [self.view addSubview:_contentView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
